package com.jdd.modules.parking.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import com.jdd.modules.parking.entity.ParkArmInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * author:lcy
 * since 2021/11/5 15:35
 * 工作站新增时传递VO
 */
@Data
public class ParkWorkStationVo {
    /**主键*/
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "编号")
    private String id;
    /**停车场名称*/
    @ApiModelProperty(value = "停车场名称")
    private String parkName;
    /**停车场编码*/
    @ApiModelProperty(value = "停车场编码")
    private String parkCode;
    /**工作站名称*/
    @ApiModelProperty(value = "工作站名称")
    private String workName;
    /**终端类型*/
    @ApiModelProperty(value = "终端类型")
    private Integer terminalType;
    /**备注*/
    @ApiModelProperty(value = "备注")
    private String remark;
    /**当前操作员名*/
    @Excel(name = "当前操作员名", width = 15)
    @ApiModelProperty(value = "当前操作员名")
    private String operationName;
    /**当前操作员真实姓名*/
    @Excel(name = "当前操作员真实姓名", width = 15)
    @ApiModelProperty(value = "当前操作员真实姓名")
    private String realName;
    /**上班时间*/
    @Excel(name = "上班时间", width = 15)
    @ApiModelProperty(value = "上班时间")
    private String upTime;
    /**创建时间*/
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date creteTime;
    /**更新时间*/
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**状态*/
    @Excel(name = "状态状态，0离线，1在线", width = 15)
    @ApiModelProperty(value = "状态状态，0离线，1在线")
    private String status;
    /**IP地址*/
    @Excel(name = "IP地址", width = 15)
    @ApiModelProperty(value = "IP地址")
    private String ipAddr;
    /**车道id列表集合，添加编辑用 */
    @ApiModelProperty(value = "车道id列表集合")
    private List<String> parkArmList;
    /**操作人ID*/
    @Excel(name = "操作人ID", width = 15)
    @ApiModelProperty(value = "操作人ID")
    private String usedUserId;
    /**车道列表集合，展示用 */
    @ApiModelProperty(value = "车道列表集合")
    private List<ParkArmInfo> parkArmEntityList;
}
